package axdoc.rule.def.impl.activity;

import axdoc.rule.def.RangeRule;

public class ConsultRule extends RangeRule {

	@Override
	public String getName() {
		return "咨询次数";
	}

	@Override
	public String toHtml() {
		StringBuffer html = new StringBuffer();
		html.append("<tr>");
		html.append("<td>").append(getName()).append("</td>");
		html.append(
				"<td><select id='patternType' name='patternType' class='easyui-combobox' data-options=\"multiple:true,width:80,required:'required',panelHeight:80\">");
		for (int i = 0; i < ruleValues.size(); i++) {
			html.append("<option value='").append(ruleValues.get(i).getId()).append("'>")
					.append(ruleValues.get(i).getName()).append("</option>");
		}
		html.append("</select>");
		html.append(
				"<input name=\"patientNum\" type=\"text\"  style=\"width: 20px;margin-left:5px;\" class=\"easyui-validatebox\" data-options=\"required:'required',validType:'checkNum',invalidMessage:'该输入框必须输入数字'\"/>&nbsp;次咨询");
		html.append("</td>");
		html.append("</tr>");
		return html.toString();
	}

}
